const { build } = require("vite-plugin-electron");

module.exports = {
    productName: 'electron-cli',
    directories: {
        output: 'release',
        buildResources: 'build'
    },
    files: [
        'dist',
        'dist-electron',
        '!**/package-lock.json'
    ],
    // 定义发布地址
    publish: [
        {
            "provider": "generic",
            "url": "http://127.0.0.1:9988/public"
        }
    ],
    asar: true,
    compression: 'maximum',
    win: {
        target: {
            target: 'nsis',
            arch: ['x64']
        }
    },
    nsis: {
        oneClick: false,
        allowElevation: true,
        allowToChangeInstallationDirectory: true,
        createDesktopShortcut: true,
        createStartMenuShortcut: true,
        shortcutName: 'electron-cli',
        runAfterFinish: false,
        // include: "build/installer.nsh"
    }
}
